/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_MENUELEMENT_H__
#define __LUA_MENUELEMENT_H__
#pragma once

#include "../List/LuaListContainerElement.h"

namespace DuiLib {

class LuaMenuElement : public LuaListContainerElement
{
    SDLUA_CLASS_DECLARE(LuaMenuElement);

    int EstimateSize(LuaState *L);

    int GetMenuWnd(LuaState *L);
	void CreateMenuWnd();

    void SetLineType();
	void SetLineColor(DWORD color);
	DWORD GetLineColor();
	int SetLinePadding(LuaState *L);
	int GetLinePadding(LuaState *L);
	int SetIcon(LuaState *L);
	void SetIconSize(LONG cx, LONG cy);
    
	void SetChecked(bool bCheck);
	bool GetChecked();
	void SetCheckItem(bool bCheckItem);
	bool GetCheckItem();

    void SetShowExplandIcon(bool bShow);
};

}

#endif //__LUA_MENUELEMENT_H__